<?php 
//搜索框插件
class cy_search extends WP_Widget {
	function cy_search() {
		$widget_ops = array('description' => '用于搜索本站内容的工具');
		$this->WP_Widget('cy_search', '&#xE000; 搜索框', $widget_ops);
	}
	function widget() {?>
<div class="widget widget_cy_search">
	<form class="cy-search" method="get" action="<?php bloginfo('home'); ?>">
		<input type="submit" class="icon-search" value="<?php echo ismobile() ? "&#xe011;" : "&#xf002;"?>">
		<input type="text" name="s" value="">
	</form>
</div>
<?php
	}
}
register_widget('cy_search');
?>